<?php
/**
 * Output all items using it's shortinfo view.
 */
foreach ($records as $n=>$row):
	$this->data['row'] = $row;
	$this->data['n'] = $n;
	echo $record->view('editor_'.$toolbar['current'], $this->data);
endforeach;
?>

<!-- Link to load more records -->
<?php
	/**
	 * There are at least as many records in this block than the limit, so we display
	 * the link which gets triggered on scrolling to/past the end of the document.
	 */
	if (isset($limitFind) && count($records) >= $limitFind):
?>
<a
	id="loadOnScroll"
	class="action loadonscroll"
	data-target="results"
	href="<?php echo ahref(sprintf('%s/editor/index/%s/%d/%d', $language, $record->getMeta('type'), $limitOffset + $limitFind, $limitFind)); ?>">
	<?php echo __('continue'); ?>
</a>
<?php
	endif;
?>
<!-- /Link -->